#include "render/GLRenderer.h"
#include "gui/EventManager.h"
#include "gui/EventDispatcher.h"

#include "FOXGraphicsSubsystem.h"

using namespace neiderra::gui;
using namespace neiderra::core;
using namespace neiderra::rendering;

FOXGraphicsSubsystem::FOXGraphicsSubsystem(Core* core)
: iGraphicsSubsystem(core)
{
	_renderer = new glRenderer(core);
	_eventManager = new EventManager(core);
	_eventDispatcher = new EventDispatcher(core);
}

FOXGraphicsSubsystem::~FOXGraphicsSubsystem()
{
	// fixme: 
	delete _renderer;
	delete _eventDispatcher;
	delete _eventManager; 
}

void FOXGraphicsSubsystem::update(double dt)
{
	_eventDispatcher->dispatchEvents();

}

